package com.wyg.demo.domain;

import com.opencsv.bean.CsvBindByName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author ygWen
 * @Description: 与csv文件中数据对应的实体类
 * @date 2021/12/29
 */
public class LongDistance {
    @CsvBindByName(column = "date")
    private String date;
    @CsvBindByName
    private String fromarea;
    @CsvBindByName
    private String toarea;
    @CsvBindByName(column = "avg_distance")
    private String avgDistance;
    @CsvBindByName
    private String popnum;
    @CsvBindByName
    private String flag;
    @CsvBindByName
    private String datatime;

    public LongDistance() {
    }

    public LongDistance(String date, String fromarea, String toarea, String avgDistance, String popnum, String flag, String datatime) {
        this.date = date;
        this.fromarea = fromarea;
        this.toarea = toarea;
        this.avgDistance = avgDistance;
        this.popnum = popnum;
        this.flag = flag;
        this.datatime = datatime;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getFromarea() {
        return fromarea;
    }

    public void setFromarea(String fromarea) {
        this.fromarea = fromarea;
    }

    public String getToarea() {
        return toarea;
    }

    public void setToarea(String toarea) {
        this.toarea = toarea;
    }

    public String getAvgDistance() {
        return avgDistance;
    }

    public void setAvgDistance(String avgDistance) {
        this.avgDistance = avgDistance;
    }

    public String getPopnum() {
        return popnum;
    }

    public void setPopnum(String popnum) {
        this.popnum = popnum;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getDatatime() {
        return datatime;
    }

    public void setDatatime(String datatime) {
        this.datatime = datatime;
    }

    @Override
    public String toString() {
        return "MyBean{" +
                "date='" + date + '\'' +
                ", fromarea='" + fromarea + '\'' +
                ", toarea='" + toarea + '\'' +
                ", avgDistance='" + avgDistance + '\'' +
                ", popnum='" + popnum + '\'' +
                ", flag='" + flag + '\'' +
                ", datatime='" + datatime + '\'' +
                '}';
    }
}
